package com.ljh.myrpc.registry;

import com.ljh.myrpc.utils.SpiLoader;

import java.security.Key;

public class RegistryFactory {

    // 默认注册中心
    private static final Registry DEFAULT_REGISTRY = new EtcdRegistry();

    /**
     * 获取实例
     */
    public static Registry getInstance(String key){
        return SpiLoader.getInstance(Registry.class, key);
    }
}
